<div class="panel-body">
    <div class="table-responsive">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <g:sortableColumn property="fullName" title="姓名"/>
                <g:sortableColumn property="role" title="角色"/>
                <g:sortableColumn property="createBy" title="创建人"/>
                <g:sortableColumn property="modifyBy" title="修改人"/>
                <g:sortableColumn property="createdDate" title="创建时间"></g:sortableColumn>
                <g:sortableColumn property="modifiedDate" title="修改时间"></g:sortableColumn>
                <g:sortableColumn property="active"  width="10%" class="text-center" colspan="2" title="操作"/>
            </tr>
            </thead>
            <tbody>
            <g:each in="${teamList}">
                <tr>
                    <td>${it?.user?.fullName}</td>
                    <td>${it?.teamRole?.name}</td>
                    <td>${it?.createBy}</td>
                    <td>${it?.modifyBy}</td>
                    <td><g:formatDate date="${it?.createdDate}"
                                      format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                    <td><g:formatDate date="${it?.modifiedDate}"
                                      format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                    <td>
                        <g:link class="btn btn-link btn-xs"
                                controller="${this?.teamName}" action="edit"
                                id="${it?.id}">
                            <i class="fa fa-edit"></i>
                            编辑
                        </g:link>

                    </td>
                    <td>
                        <g:form controller="${this?.teamName}" action="delete"
                                style="display: inline-block"
                                id="${it.id}"
                                method="DELETE">
                            <button class="deleteBtn btn btn-link btn-xs" type="button">
                                <i class="fa fa-trash-o"></i>
                                删除
                            </button>
                        </g:form>
                    </td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
</div>